<? include ("../init.php") ?>
<? include ("../header.php") ?>
<? include ("../menu.php") ?>
<? include ("submenu.php") ?>
<?
  $sql = "SELECT p_img FROM promotion_ WHERE p_id=4";
  $promo_info = $db->queryUniqueValue($sql);
?>
<div id = "body">

<h1>+<?_l('edit')?> <?_l('Top Banner')?></h1>
<div class = "clear"></div>


<form method="post" action="update3.php" class = "form" enctype="multipart/form-data">
  <input type="hidden" name="aid" value="4" />
  <div class = "field"><label><?_l('image')?></label><input type = "file" name = "image" class = "input size1" > * ขนาด 583x89 pixel</div>
  <?php
    if($promo_info!='' && file_exists('../../images/promotions/'.$promo_info)){
      echo '<div class = "field"><label>&nbsp;</label><img src="../../images/promotions/'.$promo_info.'" /></div>';
      echo '<input type="hidden" name="oldimg" value="'.$promo_info.'" />';
    }
  ?>
  <hr>
  <div class = "field"><label></label><input type = "submit" value = "<?=__l('update')?>" class = "btn">&nbsp;<a href = "#" class = "btn" onclick="javascript:history.back(1)"><?_l('cancel')?></a></div>
</form>

</div>

<style>
  .form label {
    width:80px;
  }
</style>
</div>
<? include "../footer.php" ?>